import Vue from 'vue';
var mpheader = require("../components/mpheader.js");

var fvue;

// 创建普通提示框
function createfinallDialog(commonData) {
    // imgIndex 1:成功 2:失败
    var mheder1 = mpheader.getMPheader({
        "titleText": "申请结果",
        "fhstyle":"none"
    }, function() {
        wx.closeWindow();
    });
    fvue = new Vue({
        el: "#apply_finally",
        data: {
            commonData: commonData,
            finallyCode: 2,
            finallTS: "预计两个小时到帐"
        },
        components: {
            "mpheader": mheder1
        },
        methods: {
            toRecord: function() {
                location.href = "./loanInquiry.html?openid="+openid +"&sceneId=" + sceneId + "&prdtNo=" + prdtNo;
            }
        }
    });

    return fvue;
}


module.exports = {
    createfinallDialog: createfinallDialog
}